import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/admin/doLogin',
    method: 'post',
    data: data
  })
}

export function getInfo() {
  return request({
    url: '/admin/loginInfo',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/admin/logout',
    method: 'get'
  })
}

export function signUp(data) {
  return request({
    url: '/signUp',
    method: 'get',
    data: data
  })
}

export function bindOauth(data) {
  return request({
    url: '/oauth/callback/bind_oauth',
    method: 'get',
    data: data
  })
}
